package dome.cachedome;

import jp.business.utils.cache.AbstractDefaultVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @className: User
 * @description: TODO 类描述
 * @author: Jp
 * @date: 2022/9/9
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User extends AbstractDefaultVo<User> {

    private String userName;

    private String userAddress;


    public User(String id){
        super.setId(id);
    }

    @Override
    public void build() {
        // 设置缓存的Key
        super.setRedisKey("USERKEY:"+super.getId());
    }
}
